package com.chengzhi.disruptor.heigh;

import com.lmax.disruptor.EventHandler;

import java.math.BigDecimal;
import java.time.LocalDateTime;

public class TradeHandler3 implements EventHandler<Trade> {
    @Override
    public void onEvent(Trade event, long sequence, boolean endOfBatch) throws Exception {
        System.out.println(LocalDateTime.now() + "  [op:TradeHandler3]------------onEvent " + event.toString());
        event.setPrice(new BigDecimal("33"));
    }
}
